import axios from '../axios'

// 获取所有激活码
export const dogencode = data => {
  return axios({
    url: 'gencode',
    method: 'post',
    data
  })
}

export const getuserpage = params => {
  return axios({
    url: 'alluser',
    method: 'get',
    params
  })
}

export const getorderpage = params => {
  return axios({
    url: 'allorder',
    method: 'get',
    params
  })
}

export const dodeluser = data => {
  return axios({
    url: 'deluser',
    method: 'post',
    data
  })
}
export const dodelcode = data => {
  return axios({
    url: 'delcode',
    method: 'post',
    data
  })
}

export const doedituser = data => {
  return axios({
    url: 'edituserinfo',
    method: 'post',
    data
  })
}
export const doeditcode = data => {
  return axios({
    url: 'editcode',
    method: 'post',
    data
  })
}




